package com.example.easybuy.pojo;

import org.springframework.stereotype.Component;

@Component
public class ShoppingCar {
//    购物车id
    private int id;
    //商品id
    private int productsId;
    //数量
    private int proNum;
    //用户id
    private int userId;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getProductsId() {
        return productsId;
    }

    public void setProductsId(int productsId) {
        this.productsId = productsId;
    }

    public int getProNum() {
        return proNum;
    }

    public void setProNum(int proNum) {
        this.proNum = proNum;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }


    @Override
    public String
    toString() {
        return "ShoppingCar{" +
                "id=" + id +
                ", productsId=" + productsId +
                ", proNum=" + proNum +
                ", userId=" + userId +
                '}';
    }
}
